home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / prog_c / bc4lib.zip / MATH2.H < prev    next >
C/C++ Source or Header  |  1994-05-07  |  833b  |  35 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6. extern float sinof[360],cosof[360];    /* lookup tables for sin & cos */
  7.  
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. long dist2d(long x1, long y1, long x2, long y2);
  13. long round(float f);
  14. int headingto(long x1, long y1, long x2, long y2);
  15. int markvalue(long x1, long y1, long z1, long x2, long y2, long z2);
  16. long dist3d(long x1, long y1, long z1, long x2, long y2, long z2);
  17. void i2s(long i,char *s);
  18. int s2i(char *s);
  19. void l2s(long i,char *s);
  20. long s2l(char *s);
  21. int isin(int x, int y, int x1, int y1, int x2, int y2);
  22. int dice(int i);
  23. void ulim(int *i, int j);
  24. void normalize(int *i);
  25. void llim(int *i, int j);
  26. void inittrigtables();
  27. void f2s(float f,char *s);    /* float 2 string, 20 digits */
  28. void f2s2(float f,char *s);   /* float 2 string, 2 decimal places */
  29.  
  30.  
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34.  
  35.